import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// import { Button,Icon,Page,Modal,Form ,Input  } from 'view-design';           // 按需加载
import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';
import ('vue-swipe/dist/vue-swipe.css');
import { Swipe, SwipeItem } from 'vue-swipe'
import * as filters from './utils/filters'

import BaiduMap from 'vue-baidu-map'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/css/swiper.css'
// window.router=router
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})
Vue.use(BaiduMap, {
  ak: 'PNebEUBndPF3MwDe3Q4OlcHkGeTdCwDi'
});
Vue.component('swipe', Swipe)  
Vue.component('swipe-item', SwipeItem) 
Vue.use(VueAwesomeSwiper)
Vue.config.productionTip = false
Vue.use(ViewUI);

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
